package cn.xej.stream;

/**
 * @Author alicat.xu
 * @Date 2021/11/22 11:04 下午
 */
public class Employ{

    private String id;
    private String name;
    private int age;
    private String dept;
    private int gender;

    public Employ(){
    }

    public Employ(String id, String name, int age, String dept, int gender){
        this.id = id;
        this.name = name;
        this.age = age;
        this.dept = dept;
        this.gender = gender;
    }

    public void getInfo(){
        System.out.println("编码:"+this.id+"，名称:"+ this.name +"， 年龄:"+ this.age +"， 部门:"+ this.dept + "，性别:" +this.gender);
    }

    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getDept() {
        return dept;
    }
    public void setDept(String dept) {
        this.dept = dept;
    }
    public int getGender() {
        return gender;
    }
    public void setGender(int gender) {
        this.gender = gender;
    }
}
